home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-03-06 | 1.1 KB | 35 lines | [TEXT/GEOL] |
- Item 0876043 18-Nov-88 16:35
-
- From: CREMER.M Cremer, Mike
-
- To: D2078 AS & M, Dev, Alan Dail
- RODSETH.R Rodseth, Richard
-
- cc: MACAPP.TECH$ MACAPP Tech
-
- Sub: re: double-clicks
-
- Here's the cheap and sleazy Cremer way, where fDialog is set to be the owning
- dialog for the TTextListView object:
-
- FUNCTION TMyTextListView.DoMouseCommand(VAR theMouse: Point; VAR info:
- EventInfo; VAR hysteresis: Point): TCommand; OVERRIDE;
-
- BEGIN {DoMouseCommand}
- DoMouseCommand := gNoChanges; {assume we got it}
- IF (gClickCount = 2) THEN
- fDialog.DismissDialog('ok ') {pretend user hit OK}
- ELSE
- DoMouseCommand := INHERITED DoMouseCommand(theMouse,info,hysteresis)
- END; {DoMouseCommand}
-
- It may not be elegant, but it works. Warning, gClickCount can really mess
- things up if you have some other "do" action item (i.e. highlighting) because
- gClickCount gets incremented for triple-clicks as well.
-
- $mike cremer
-
-
-
-
-